<?xml version='1.0' encoding='UTF-8' ?>
<!--
    Document   : navigation
    Created on : 03 Jun 11, 23:33:59
    Author     : Administrator
-->
<ice:form xmlns:h="http://java.sun.com/jsf/html"
          xmlns:f="http://java.sun.com/jsf/core"
          xmlns:ice="http://www.icesoft.com/icefaces/component">
    <ice:panelGrid cellspacing="5" width="100%">
        <!-- first column, for tree navigation -->
        <ice:panelGroup style="border: 1px solid gray; height: 400px">
            <!--
                Fully styled Xp themed tree.
            -->
            <ice:tree id="tree"
                      value="#{menuBean.model}"
                      var="item"
                      hideRootNode="false"
                      hideNavigation="false"
                      imageDir="./xmlhttp/css/xp/css-images/">
                <ice:treeNode>
                    <f:facet name="icon">
                        <ice:panelGroup style="display: inline">
                             <h:graphicImage value="#{item.userObject.icon}"/>
                        </ice:panelGroup>
                    </f:facet>
                    <f:facet name="content">
                        <ice:panelGroup style="display: inline">
                            <ice:commandLink actionListener="#{item.userObject.url}"
                                    value="#{item.userObject.text}"/>
                        </ice:panelGroup>
                    </f:facet>
                </ice:treeNode>
            </ice:tree>
        </ice:panelGroup>
        </ice:panelGrid>
</ice:form>